package com.bona.dubbo.demo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.bona.dubbo.demo.IDemoDubboSV;
import com.bona.model.demo.DemoModel;
import com.bona.service.demo.DemoService;

/**
 * 系统范例接口
 * @author tbzeng
 *
 */
public class DemoDubboSVImpl implements IDemoDubboSV {

	@Autowired
	private DemoService demoService;
	
	@Override
	public void add(DemoModel model) {
		demoService.add(model);
	}
	
	@Override
	public DemoModel query(DemoModel model) {
		return demoService.query(model);
	}
	
	@Override
	public Integer delete(DemoModel model) {
		return demoService.delete(model);
	}
	
	@Override
	public Integer queryByCount(DemoModel model) {
		return demoService.queryByCount(model);
	}
	
	@Override
	public List<DemoModel> queryByPage(DemoModel model) {
		return demoService.queryByPage(model);
	}
}
